﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agro.Models;
using System.Data;
using Agro.Library;
using SN.Core;
using SN.Data;

namespace Agro.Services {

    public interface IMenuService : IBaseService {
        /// <summary>
        /// 保存菜单
        /// </summary>
        /// <param name="menu"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool SaveMenu(T_Menu menu, out string msg);
        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        int DeleteMenu(string id, string pid, int childNum);
        DataTable GetMenuDT(string pid);
        DataTable TreeGetList(CurrentUser user, string id);
        DataTable GetUserMenuIdDT(CurrentUser user);

        DataTable GetMenuList(QueryBase query, WhereClip wclip); 

    }
}
